# -*- encoding: utf8 -*-
from common.cp.friday import marketing_cached_handler


def cp_summary_report_v3(app_name, time_range):
    data = marketing_cached_handler.get_aggregation_data(app_name,
                                                         marketing_cached_handler.ExternalEnum.DailySummary,
                                                         time_range=time_range)
    if not data:
        return dict(msg="数据暂未生成，请稍后再试")
    return data
